// src/main/java/com/yin/waimai/enums/OrderStatus.java
package com.yin.waimai.enums;

/**
 * 订单整体状态枚举
 */
public enum OrderStatus {
    PENDING_PAYMENT("待支付"), // If payment is needed before shipping
    PENDING_COLLECTION("待揽收"),
    COLLECTED("已揽收"),
    TRANSPORTING("运输中"),
    OUT_FOR_DELIVERY("派送中"),
    DELIVERY_FAILED("派送失败"),
    SIGNED("已签收"),
    COMPLETED("已完成"), // After successful signing
    CANCELLED("已取消"),
    REFUNDED("已退款"); // If applicable

    private final String description;

    OrderStatus(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }
}